<?php
//模版用于产品超市详细产品页面
$category = get_the_category();
$currentcat = $category[0]->cat_ID;
if (file_exists(TEMPLATEPATH."/single-cat-$currentcat".".php")) {
include(TEMPLATEPATH."/single-cat-$currentcat".".php");
} else {
?>

<?php 
/*
Template Name: Active card
*/
get_header();
$this_is_page=true;
?>
		 <div class="ProContent">
	 	   <div class="ProSubmenu">
		   	<ul>
				
				<li class="Home"><a href="<?php bloginfo('url'); ?>" style="margin-left:0px;"><img src="<?php bloginfo('template_url'); ?>/images/homebutton.png" /></a></li>
				<li class="TitleButton"><a><img src="<?php bloginfo('template_url'); ?>/images/hotstitle.png" /></a></li>

				   <?php
                            $the_query = new WP_Query(array ( 'orderby' => 'date', 'order' => 'DESC', 'cat' => 20));
                            while ($the_query->have_posts()) : $the_query->the_post();
                            ?>
                                <li class="Button hotsred">    
                                    <a href="<?php the_permalink() ?>">
                                        <?php the_title_attribute(); ?>
                                    </a>    
                                </li>      
                   <?php endwhile; ?>	
				<li class="TitleButton"><a><img src="<?php bloginfo('template_url'); ?>/images/product.png" /></a></li>					
				<li class="Button"><a href="#">寿险产品大全</a></li>
			
						<li class="SubButton"><a href="<?php bloginfo('url'); ?>/?page_id=363#nbaby">-少儿教育险</a></li>
						<li class="SubButton"><a href="<?php bloginfo('url'); ?>/?page_id=363#nfamily">-家庭保障险</a></li>
						<li class="SubButton"><a href="<?php bloginfo('url'); ?>/?page_id=363#noldman">-养老年金险</a></li>
						<li class="SubButton"><a href="<?php bloginfo('url'); ?>/?page_id=363#ninvest">-投资理财险</a></li>
						<li class="SubButton"><a href="<?php bloginfo('url'); ?>/?page_id=363#nmedicare">-重疾医疗险</a></li>
						<li class="SubButton"><a href="<?php bloginfo('url'); ?>/?page_id=363#naccident">-意外伤害险</a></li>
			
				<li class="Button"><a href="#">财险产品大全</a></li>
						<li class="SubButton"><a href="<?php bloginfo('url'); ?>/?p=1795">-机动车辆保险</a></li>
						<li class="SubButton"><a href="<?php bloginfo('url'); ?>/?p=1824">-意外险（团意）</a></li>
						<li class="SubButton"><a href="<?php bloginfo('url'); ?>/?p=1812">-家财险</a></li>
						<li class="SubButton"><a href="<?php bloginfo('url'); ?>/?p=1786">-企业财产保险</a></li>
						<li class="SubButton"><a href="<?php bloginfo('url'); ?>/?p=1862">-建工险</a></li>
						<li class="SubButton"><a href="<?php bloginfo('url'); ?>/?p=1928">-其他财险</a></li>
						
				<li class="TitleButton"><a href="<?php bloginfo('url'); ?>/?page_id=882"><img src="<?php bloginfo('template_url'); ?>/images/active.png" /></a></li>
			

				

				<li class="Image"><img src="<?php bloginfo('template_url'); ?>/images/newsimage.png" /></li>
			</ul>
			
			
		   </div>
		   
		   <div class="ProScan">
		     <div class="ProWordstitle"><a name="prodtop"><img src="<?php bloginfo('template_url'); ?>/images/productban.png"/></a></div>
		     <div class="ProPublicWordscontent">
		  		<div class="ProTitle">
					<?php if(function_exists('sbc')){  
				    sbc();  
				} else { ?>  
				    
				<?php } ?>
					<div class="Prolist">
					<a href="<?php bloginfo('url'); ?>/?page_id=363#nbaby"><img src="<?php bloginfo('template_url'); ?>/images/babyin.png" /></a>
					<a href="<?php bloginfo('url'); ?>/?page_id=363#nfamily"><img src="<?php bloginfo('template_url'); ?>/images/familyin.png" /></a>
					<a href="<?php bloginfo('url'); ?>/?page_id=363#noldman"><img src="<?php bloginfo('template_url'); ?>/images/oldin.png"  /></a>
					<a href="<?php bloginfo('url'); ?>/?page_id=363#ninvest"><img src="<?php bloginfo('template_url'); ?>/images/inin.png" /></a>
					<a href="<?php bloginfo('url'); ?>/?page_id=363#nmedicare"><img src="<?php bloginfo('template_url'); ?>/images/patientin.png" /></a>
					<a href="<?php bloginfo('url'); ?>/?page_id=363#naccident"><img src="<?php bloginfo('template_url'); ?>/images/accin.png" /></a>
					</div>
					<div class="Prolist">
					<a href="<?php bloginfo('url'); ?>/?p=1795"><img src="<?php bloginfo('template_url'); ?>/images/carin.png" /></a>
					<a href="<?php bloginfo('url'); ?>/?p=1786"><img src="<?php bloginfo('template_url'); ?>/images/comin.png" /></a>
					<a href="<?php bloginfo('url'); ?>/?p=1928"><img src="<?php bloginfo('template_url'); ?>/images/othersin.png" /></a>					</div>
				</div>
				
                   
                   <?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>                  
                    
				
				  	<div class="contentArticle">
					  	
				    </div>
		

			    <div class="ProTable">
			    <?php if (in_category('propertyinsurance')){
			    	echo "<div class=\"Prodetialtitle2\">";
				}else 
					echo "<div class=\"Prodetialtitle\">";
				?>
					
					<h3><?php the_title(); ?></h3>
						
					</div>
					<div class="Prodetialcontent"> 
											

							<div class="Grid">
								<div class="Gridcontent">
								
								 <?php the_content(); ?>
								</div>
							</div>												
					
					</div>
			    </div>
			<?php endwhile; else: ?>
			<?php endif; ?>
		     </div>
			  <div class="pageBottomPic"></div>
			 </div>
		   </div>
		 </div>

<?php get_footer(); ?>

<?php }?>